package com.elminster.easydao.db.analyze.expression.func;

import com.elminster.easydao.db.analyze.expression.DataType;
import com.elminster.easydao.db.analyze.expression.operator.IOperator;

public class Operator2Def extends FunctionDef {

  private int hierarchy;
  
  public Operator2Def(String name, int hierarchy, DataType result,
      DataType left, DataType right, IOperator operator) {
    super(name, result, new DataType[] {left, right}, operator);
    this.hierarchy = hierarchy;
  }

  /**
   * @return the hierarchy
   */
  public int getHierarchy() {
    return hierarchy;
  }
}
